import 'package:bubbles/app/main/main_controller.dart';
import 'package:get/get.dart';

import '../../http/api/api_service.dart';
import '../about/about_controller.dart';
import '../home/home_controller.dart';
import '../rank/rank_controller.dart';

class MainBinding extends Bindings {
  @override
  void dependencies() {
    Get.lazyPut<MainController>(() => MainController()); // 懒加载控制器
    Get.lazyPut<HomeController>(() => HomeController()); // 懒加载控制器
    Get.lazyPut<AboutController>(() => AboutController()); // 懒加载控制器
    Get.lazyPut<RankController>(() => RankController());
    Get.lazyPut<ApiService>(() => ApiService());
  }
}
